const k = a;
(function (A, T) {
    const Z = a, f = A();
    while (!![]) {
        try {
            const O = parseInt(Z(0x20a)) / (0xd0b + 0x1243 + -0x1f4d) + parseInt(Z(0x21e)) / (-0x2445 + 0x1d77 + 0x6d0) * (parseInt(Z(0x218)) / (-0xba8 * 0x3 + 0x86 * 0x40 + 0x17b)) + parseInt(Z(0x226)) / (-0x1793 + -0x12f + -0x842 * -0x3) * (parseInt(Z(0x1f2)) / (0x8 * 0x3c5 + -0x3 * 0xa23 + 0x46)) + parseInt(Z(0x1f0)) / (-0x1cd * -0xc + -0x257e + 0xfe8) + parseInt(Z(0x1f1)) / (0x1125 * 0x2 + 0x568 + -0x27ab) * (parseInt(Z(0x20b)) / (-0x50 * -0x4d + 0x467 * -0x1 + -0x19 * 0xc9)) + parseInt(Z(0x204)) / (-0x12 + 0x10d1 + -0x10b6) + parseInt(Z(0x1ef)) / (-0x3d * 0x31 + -0x1 * -0x163d + -0xa86) * (-parseInt(Z(0x205)) / (0x1 * 0xe02 + -0x1292 + 0x3 * 0x189));
            if (O === T)
                break;
            else
                f['push'](f['shift']());
        } catch (b) {
            f['push'](f['shift']());
        }
    }
}(B, -0x11 * -0x2343 + -0x11f499 + 0x19fd00));
function F(T, f) {
    const O = K();
    return F = function (b, G) {
        b = b - ((-0x1b96 + -0xc0b * 0x5 + 0x3e91 * 0x2) * -(0xf12 + 0x2 * -0xf91 + 0x1011) + (0x26 * -0xaa + -0x12bc * 0x2 + 0x1047 * 0x5) + (-0x1 * -0x237a + -0x4e1 * -0x8 + -0x3615) * (0x12 * 0x74 + 0x1 * 0xd3a + -0x1561));
        let v = O[b];
        return v;
    }, F(T, f);
}
function a(A, T) {
    const f = B();
    return a = function (O, c) {
        O = O - (0x99b * -0x3 + 0x4b * -0x6d + 0x3eae);
        let b = f[O];
        return b;
    }, a(A, T);
}
const c = F;
(function (T, f) {
    const U = a, O = F, b = T();
    while (!![]) {
        try {
            const G = -parseInt(O(-0x7aa + 0x25b0 + -0x1 * 0x1c2b)) / ((-0x1 * -0x39 + -0x1f99 + -0x1f85 * -0x1) * (0x6a * -0x43 + 0x1f90 + -0xb6 * 0x5) + -(-0x1 * -0x6a1 + 0x718 + -0xba6) + -(0x1af2 + -0x20f * 0xe + 0x9a0)) * (-parseInt(O(-0x2f8 * -0x1 + -0x26dc * 0x1 + 0x25ac * 0x1)) / ((0x2460 + -0x37 * 0x25 + 0x4 * -0x3d0) * (-0x821 * 0x3 + -0x13c7 * -0x1 + 0x49e) + (-0x1792 + 0x4d * -0x3f + 0x2c88) * (0x1664 + 0x12d1 + 0xb9 * -0x39) + -(0x101e * -0x2 + 0x1 * 0x2214 + -0x1d7) * (-0x42 * -0xb3 + 0xb5 * -0x57 + 0x31c1))) + -parseInt(O(-0xe * 0xd3 + -0x1423 * 0x1 + 0x2190)) / (-(0xe36 + -0xe87 + 0x3 * 0x355) + -(-0x23eb + -0xb83 + 0x2fb5 * 0x1) * -(0xf0b + 0x1e8f + -0x2d39) + -(-0x4bc + 0x635 + 0xfbd)) * (parseInt(O(0x2 * -0x16 + 0x3 * -0x3bd + 0xd3d)) / ((0xaa1 + 0x5 * -0x65b + 0x16e7) * -(-0x2638 + 0xf13 + 0x1733) + -(-0x46a + -0x223 * 0xc + 0x1e3f) * (-0x961 * -0x2 + 0x13 * 0x62 + 0x8a3 * -0x3) + (-0x993 + -0x3 * 0x887 + 0x41a9))) + -parseInt(O(0x172 * 0x7 + 0x2ff + -0xb51)) / (0xf + -0x1f17 + 0x1 * 0x40be + (0x2b * 0xd + 0x399 * 0xa + -0x1fe8 * 0x1) + (-0xdd * -0x18 + 0x25 * 0xa8 + -0x2cfe) * -(-0x19d + 0x149f * -0x1 + 0x2a35)) + -parseInt(O(-0x1d71 + -0x56 * 0x56 + 0x3c42)) / ((-0x2213 + -0x14ab + 0x1249 * 0x3) * (-0x658 + 0x15f6 + -0x4f1 * 0x3) + (-0x11 * 0x1d4 + -0x1 * -0x125 + 0x1df0) * -(0x33 + 0x5 * -0x29 + 0x161 * 0x1b) + -(0x1e9 + -0x1f5 + 0x2 * 0x8) * -(-0x221 + 0x220d + -0x1c82)) + parseInt(O(-0x8f + -0x8cd + 0x107 * 0xb)) / (-0x2405 + 0x53 * 0x3d + -0x1 * -0x1297 + (0x2737 + -0x1af6 + 0x96d) + -(-0xc4 * 0x1d + 0x22a2 + 0xb92)) + parseInt(O(0x5 * 0x41c + -0x32b + 0x7c8 * -0x2)) / ((0x7 * 0x259 + -0x165 + 0x1 * -0x221) * (-0xc * 0x329 + 0xb * -0x1a3 + 0x37ee) + -(-0x21 * 0x81 + -0x2 * -0x11b5 + 0x1 * -0x12c8) * -(-0x1c5c + -0x1be * -0x15 + 0x1 * 0x14ff) + (0x1a01 + 0x25bd + -0x1 * 0x3fad) * -(0x206 + 0x1 * 0x12fd + -0x1289)) * (-parseInt(O(-0xe90 + -0xf * 0x52 + 0x153d)) / (-(0x224 * 0x9 + -0x1fd1 + 0xcbc) * -(0x7c * 0x16 + 0xb * 0x191 + 0x117 * -0x19) + -(-0x4 * 0x45 + 0x2349 + 0x1 * -0xe6b) * (0x1 * 0x293 + -0x1 * 0x1369 + 0x1df * 0x9) + -(-0x531 * -0x1 + 0x1a2 + -0x1 * -0x376))) + parseInt(O(0xbb7 + -0x615 + -0x3cb)) / (-0x7 * 0x309 + -0x2de2 + -0xe2 * -0x6b + -(-0x1 * 0xa + -0x26e2 + -0x26ed * -0x1) * (-0x1894 * 0x1 + -0xc0a + 0x1 * 0x44e5) + (0xf10 + -0x14fc + 0xae8)) * (parseInt(O(0x86a + -0x1ae1 * 0x1 + 0x1442)) / (-(-0x25fa + 0x25e1 + -0x2 * -0xc7) * (0xcc4 + 0x1af3 + -0x27b6) + -(0x1c * -0x65 + 0x17bb + -0x139) * (-0x10f3 + 0x5d2 + 0xf * 0xbe) + (0xa15 * 0x2 + 0x8bb + -0x1cbb) * (-0x1be3 + -0x3d * -0x65 + -0x97 * -0x7)));
            if (G === f)
                break;
            else
                b[U(0x206)](b[U(0x20d)]());
        } catch (v) {
            b[U(0x206)](b['shift']());
        }
    }
}(K, -(-0x1 * 0x25f3 + -0x1e9d + 0x16db * 0x3) * (0x55 * -0x6b + -0x861 + -0x2522 * -0x2) + -(-0x1f9b + -0x86b + 0x2807 * 0x1) * -(-0x93c25 * 0x1 + 0x2 * -0x25da7 + 0x1 * 0x13d0b1) + -(-0x4 * -0x401b + -0x1887 * 0x18 + 0x3870b * 0x1)));
const n = (function () {
        let T = !![];
        return function (f, O) {
            const b = T ? function () {
                const G = F;
                if (O) {
                    const v = O[G(0x1f00 + -0x1d21 + 0x2 * 0xf)](f, arguments);
                    return O = null, v;
                }
            } : function () {
            };
            return T = ![], b;
        };
    }()), C = n(this, function () {
        const A = F;
        return C[A(0x813 * 0x3 + -0x16 * -0x187 + -0x37e7)]()[A(0x1 * -0x1fa2 + 0xdf2 * 0x2 + 0x2 * 0x2cb)](A(0x3c * -0x45 + 0x885 * 0x3 + -0x5 * 0x17f))[A(0x1 * -0x20e7 + 0x5 * 0x2db + 0x148c)]()[A(0x652 + 0x690 + -0xaea)](C)[A(0x1 * -0x1a66 + -0x12 * 0xa5 + 0x27d8)](A(0x1 * 0x1578 + -0x130d * -0x2 + 0x29f * -0x16));
    });
function B() {
    const x = [
        'path',
        '../src/',
        '../../pages.json',
        '322710MiSqKr',
        '318294XfLiSK',
        '778001cnVYgL',
        '130IAFoaS',
        'then',
        'filter',
        'pagePath',
        '439593MTCGJH',
        'find',
        '-----',
        '120WpuBXN',
        'list',
        'indexOf',
        'length',
        'every',
        'writeFile',
        'isArray',
        'access',
        'writeFileSync',
        'Menu',
        'Kebab',
        '4514652gThzLu',
        '649OacGdD',
        'push',
        'catch',
        'reverse',
        '1057983vpfrQN',
        '525774rSYIyu',
        '16vQsyrm',
        'sort',
        'shift',
        '2133378ZsgrNH',
        'search',
        'split',
        'log',
        '../../pages-copy.json',
        'error',
        'Page',
        'some',
        '(((.+)+)+)+$',
        'startsWith',
        '6zRuIDY',
        'forEach',
        '.vue',
        'resource',
        'constructor',
        'splitStr',
        '167284uOQGne',
        'promises',
        'permissionCode',
        'readFileSync',
        'toString',
        'constants',
        '----------pages.json备份成功----------',
        '80046TLnBZG',
        '171364GKYaiI',
        'comment-json',
        'F_OK',
        '生成pages.json失败'
    ];
    B = function () {
        return x;
    };
    return B();
}
C();
const {parse, stringify, assign} = require(c(484)), fs = require('fs');
import { resourceApiAliasConfig } from './config/index';
import { transName } from './config/utils';
const {resourceUrlKeyAlias, childrenKeyAlias, realPageFileKeyAlias, resourceTypeKeyAlias, resourcePermsKeyAlias, resourceNameAlias, resourceIconAlias, idKeyAlias, pidKeyAlias, resourcePermsKeyDefinedRule, targetKeyAlias, targetResourcePermsKeyAlias, hasChildrenAlias, ordinalKeyAlias, uiOptionsKeyAlias, hackSuffixJumpStr, getJumpTargetVal, realPageFilePathKeyFuc, getJumpTargetReourcePermsKey, getCompleteUrl} = resourceApiAliasConfig, pagesJsonFilePath = k(0x1ee), copyPagesJsonFilePath = c(0x2 * -0x41a + 0x1092 + 0x22 * -0x31), checkFileExists = async T => {
        const f = c;
        return fs[f(-0x6de * -0x1 + 0x25ba + 0x2ac3 * -0x1)][f(-0x2653 * -0x1 + 0x1 * 0x16f1 + -0x3b4b)](T, fs[f(0x216b + 0xa6 * 0x34 + -0x412e)][f(0x5ee + 0x1ee8 + -0x2307)])[f(0x16c5 + 0x193d * -0x1 + -0x1 * -0x442)](() => !![])[f(-0x156f + -0x1967 + -0x1 * -0x30bf)](() => {
            const V = a, O = f;
            return console[O(0x1022 + 0x12d5 + 0x1 * -0x20fb)](V(0x1f8) + T + ',文件没找到了-----'), ![];
        });
    }, pagesJsonAutoGen = getResourceList => {
        const L = k, T = c;
        console[L(0x211)](T(-0x13 * 0x107 + -0x1 * -0x592 + 0xfe2 * 0x1)), fs[T(-0x11 * 0x22a + 0xd * -0x228 + -0x1 * -0x42a0)](copyPagesJsonFilePath, fs[T(0x1d06 + -0x22a2 + 0x797)](pagesJsonFilePath)[T(-0x165e + -0x26d6 + 0xca0 * 0x5)]()), console[L(0x211)](T(0x1d02 + 0x6 * -0x1f + 0xc1 * -0x23));
        const f = parse(fs[T(-0x1 * -0xe30 + 0x1c8f + 0x2 * -0x1462)](pagesJsonFilePath)[T(0x1b6e * 0x1 + 0x106e + 0xb * -0x3d0)]());
        getResourceList()[T(-0x34e + 0x1dc + -0x9 * -0x5c)](b => {
            const g = L, v = T, l = [], w = [];
            b[v(-0x1 * -0x120e + 0x2 * 0xfe6 + 0xff4 * -0x3)][v(-0x1 * -0xf6d + -0xc6f + -0x10e)]((X, Q) => {
                const Y = v;
                if (X[resourceTypeKeyAlias] === Y(0x1 * -0x437 + -0x1 * -0x65 + 0x5bd) && Q[resourceTypeKeyAlias] === Y(0x1c * -0x38 + 0x23 * -0x63 + 0x1582))
                    return -(-0xfc3 + -0x10e4 * -0x2 + -0x1 * 0xe56) * -(0x243a * 0x1 + -0x1a45 + 0xe * -0xb6) + (0x47 * 0x3a + 0x11 * 0x25 + 0x11ba * -0x1) * (-0xefc + 0x518 * 0x4 + 0xb * -0x7a) + -(0x206d + -0x80 * -0x29 + -0x34ec) * (0x2e3 + -0x10 * 0x22a + -0x49 * -0xe9);
                else {
                    if (X[resourceTypeKeyAlias] === Y(0xcc3 * 0x2 + 0x3ea * 0x9 + -0x3ae7) && Q[resourceTypeKeyAlias] === Y(-0x1ad * 0x12 + 0x1b15 * 0x1 + -0xa0 * -0x8))
                        return -(-(0x7 * 0x319 + -0x31 * 0xd + 0x1159 * -0x1) * -(0x1d4d + 0x50a + 0x13 * -0x1ce) + -(-0x262a + -0x18e5 + 0x209 * 0x1f) * -(0x1fa9 + -0xa * 0x28d + -0x607) + (-0xdda + -0x1c62 + 0x307d * 0x1) * -(0x64b + -0x1d4d + -0x7 * -0x34a));
                    else
                        return X[ordinalKeyAlias] - Q[ordinalKeyAlias];
                }
            })[v(0xe9c + 0x24c0 + -0x3162)](X => {
                const d = a, Q = v, Y = X[resourceTypeKeyAlias] === d(0x202) && getJumpTargetVal(X)[Q(-0x9 * -0x27 + -0x3 * 0xc07 + -0x67 * -0x5b)]('_'), z = X[resourceTypeKeyAlias] === Q(-0x1458 + -0x251e + 0x3b61), N = X[resourceTypeKeyAlias] === Q(0x2673 + 0x6b1 * -0x2 + -0x172b) && getJumpTargetVal(X)[d(0x217)]('_') && !getJumpTargetReourcePermsKey(X);
                if (Y && X[resourcePermsKeyAlias][d(0x1fb)](resourcePermsKeyDefinedRule[d(0x21d)]) === -(-(-0x187e + -0xb8a + 0x3d51) * -(-0x948 + 0x2124 + 0xc5 * -0x1f) + (-0x103 * -0x7 + -0x72e * -0x2 + -0x1 * 0x1e6) + -(0x148 * -0x8 + 0xe52 + -0x1 * -0xe9) * (0xe63 + -0x4dd * 0x5 + 0x9f7))) {
                    const H = X[resourcePermsKeyAlias][Q(0x219d + 0x168b + -0x3655)](resourcePermsKeyDefinedRule[d(0x21d)])[Q(0x1d9f * 0x1 + 0x1445 + -0x2d2 * 0x11)]()[-(-0x1941 + -0x1cdb * -0x1 + -0x358) * (0x26fd + -0x1c7e + 0x4 * -0x293) + (-0x11cb + -0x1e68 + 0x487e) * (0x2041 + -0xd8d + -0x1 * 0x12b3) + (0x8ca + 0x361 * 0x6 + -0x1959) * -(0x124 * -0x5 + 0xe4 * -0x1a + 0x185 * 0x13)], D = getCompleteUrl({ 'urlInMapKeyToRealPageUrl': '/' + transName(H, Q(-0x15dd + 0x1 * 0x2191 + -0x9b2), Q(0x485 * -0x2 + -0x1339 + 0x1e39)) });
                    l[d(0x206)]({
                        'path': D,
                        'resource': X
                    }), w[Q(-0x2 * 0x1233 + 0x1980 + 0xce9)]({
                        'path': D,
                        'resource': X
                    });
                } else {
                    if (z || N) {
                        const q = realPageFilePathKeyFuc(X[resourcePermsKeyAlias], -(0x1bac + 0x18d6 * -0x1 + 0x7d6) + (-0x1 * -0x16ed + -0x1bfe + 0x225e) * -(0x2b * -0xd7 + -0x9f * 0x35 + 0x4509) + -(0x2 * 0x64d + -0x20c7 + -0xa5 * -0x22) * -(-0x1fe2 + 0x106 + 0x3 * 0xa51), X[resourceTypeKeyAlias]), t = getCompleteUrl({ 'urlInMapKeyToRealPageUrl': '/' + q });
                        w[Q(-0x36 * 0x75 + -0x1ab6 + -0x5d * -0x93)]({
                            'path': t,
                            'resource': X
                        });
                    }
                }
            });
            const pagesConfig = f['pages'][v(-0x6b6 + -0x1a97 + 0x234c)](X => w[v(-0x6ad + -0xf8d + 0x180a)](Q => Q['path'] === X[v(0x2441 + -0x13c5 + 0x9 * -0x19c)])), r = [];
            w[v(0x12ad + -0x21 * -0xe0 + -0x2d93)](X => {
                const I = a, Q = v;
                checkFileExists(Q(-0x8 * -0x274 + -0xe0f + -0x3b0) + X[I(0x22a)] + Q(-0xe48 + -0x1 * 0x4ca + 0x1505));
                let Y = pagesConfig[Q(0x3d1 * 0x5 + -0x26e + -0xec9 * 0x1)](N => N[I(0x22a)] === X[Q(-0x1604 + -0xaa5 + 0x13 * 0x1d3)] && r[I(0x1fd)](H => H[Q(-0x9f5 + -0x751 + 0x1346)] !== N[Q(-0x7ad + 0xcb9 + -0x30c)]));
                Array[Q(-0x11 * -0x26 + -0x21 * -0x97 + -0x1409 * 0x1)](Y) && Y[Q(-0x26e9 * 0x1 + -0xad * 0x9 + -0x176f * -0x2)] > -(-0x1ab6 + 0xa3 * 0x35 + -0x653) + -(0x1fd0 + 0x406 + -0xf59) + -(-0x1e4 + 0x4 * 0x939 + -0x22fd) * -(0x1186 + -0x26c * -0x5 + -0x6d * 0x35) ? (Y[Q(0x2ad * -0x4 + -0x232f * -0x1 + 0xb5a * -0x2)] = X[Q(0xf73 + -0x18dd + -0x105 * -0xb)][resourcePermsKeyAlias], r[I(0x206)](Y)) : r[Q(-0x1b * -0xf3 + -0x176 * 0xc + 0x30b * -0x2)]({
                    'path': X[I(0x22a)],
                    'style': {
                        'navigationBarTitleText': X[Q(-0xf9f + 0x1778 + -0x60c)]['name'],
                        'permissionCode': X[Q(0x1b81 + 0x8ae + -0x2262)][resourcePermsKeyAlias]
                    }
                });
            }), f[v(-0x2417 + -0x2453 + -0x5 * -0xedb)] = r;
            const J = f[v(0x1b6 * 0x1 + -0x15c3 + -0x2 * -0xb02)][v(-0x1 * 0x2457 + -0x10f * -0x13 + 0x1228)][v(-0x123 * -0x1f + 0xbe6 + -0x2d24)](X => l[g(0x215)](Q => Q[v(-0x4 * -0x803 + 0x85 * 0x19 + -0x2b09)] === X[v(0x391 * 0x5 + -0x1f * 0xba + 0x693)])), s = [];
            l[v(-0x2593 + 0x1 * 0x11 + 0x277c)](X => {
                const E = g, Q = v;
                let Y = J[E(0x1f7)](z => z[Q(0x201 * -0x6 + 0xc1 * 0x5 + 0xa41)] === X[Q(-0x1621 + 0x13 * 0x2f + 0x1486)] && s[Q(0x1 * 0x32f + 0xabd * 0x3 + -0x2165)](N => N['pagePath'] !== z[Q(0xfc2 + 0x242 + -0x1004)]));
                Array[Q(0xd24 + 0xdf * -0x2b + 0x1a45)](Y) && Y['length'] > -0x2 * 0x1349 + -0x216 * 0x21 + -0x9117 * -0x1 + -(-0x25ee + 0xa22 + -0xb * -0x287) * -(-0x19e4 + 0x24ea + 0xc3 * 0x1) + (-0x2610 + -0x20bb + -0x1d * -0x271) * -(-0x15af + 0x3b * 0x95 + 0xc14) ? s[Q(-0x21f1 + -0x973 * -0x1 + 0x1a81)](Y) : s[Q(-0x2528 + 0x1759 * -0x1 + -0x2 * -0x1f42)]({
                    'pagePath': X[Q(-0x1 * -0x1753 + 0x111e + -0x2671 * 0x1)],
                    'text': X[E(0x21b)][Q(-0x10b6 + -0x15d * 0x13 + 0x2c6f)]
                });
            }), f[v(-0x67a * -0x6 + 0x235f + -0x4844)][v(-0x1171 + -0x1 * 0xf02 + 0x2261 * 0x1)] = s;
            const i = stringify(f, null, -(0x1ff + -0x1 * -0x10ea + -0x827) + (-0x1ab * -0x7 + 0xe0 * -0x6 + 0xb93) + (-0xa1 * -0x8 + 0x78c + -0x26 * 0x24) * -(0x237c + -0x17 * 0x163 + -0x396));
            fs[v(-0x2509 + 0xaf4 * -0x1 + 0x31d3)](pagesJsonFilePath, i, function (X) {
                const Q = v;
                X && console[Q(-0x4a3 + -0x7 * -0x22d + -0xb * 0xca)](X), console[Q(0x948 + -0xb0b + 0x3bf)](Q(-0x22a7 + 0xc77 * -0x3 + 0x49d5));
            });
        })[T(-0x20d4 + 0x1aa8 + 0x815)](O => {
            const b = T;
            console[b(-0x21fe * -0x1 + 0xe4f + -0x2e51)](O, b(-0x631 * -0x1 + 0xaa2 + 0xeff * -0x1));
        });
    };
pagesJsonAutoGen();
function K() {
    const P = k, A = [
            P(0x219),
            P(0x221),
            P(0x211),
            'apply',
            'items',
            P(0x1f4),
            P(0x22a),
            P(0x1fd),
            'Pascal',
            P(0x206),
            P(0x220),
            '483458yBPmgg',
            '----------pages.json修改成功----------',
            P(0x1f3),
            P(0x1f6),
            '1726410mueeqq',
            P(0x21b),
            P(0x201),
            P(0x228),
            P(0x215),
            P(0x1f9),
            'name',
            P(0x210),
            P(0x229),
            P(0x21f),
            P(0x1fe),
            '220rHnXrp',
            P(0x20f),
            P(0x202),
            '4ehbRhv',
            '1yDWtOm',
            P(0x212),
            'pages',
            P(0x1f7),
            P(0x225),
            P(0x1fc),
            P(0x22b),
            P(0x1f5),
            P(0x209),
            P(0x227),
            P(0x224),
            'Button',
            P(0x217),
            P(0x216),
            P(0x207),
            P(0x213),
            P(0x214),
            P(0x222),
            P(0x20e),
            P(0x1fa),
            '----------开始执行脚本----------',
            P(0x20c),
            '2067772WBGHLT',
            P(0x208),
            P(0x21a),
            P(0x1ff),
            P(0x223),
            P(0x203),
            'tabBar',
            P(0x21c),
            P(0x200)
        ];
    return K = function () {
        return A;
    }, K();
}